package edu.ccut.saturn.studio.logic.model.saturn;

import java.util.List;

public class SaturnWebContextParameter {
	
	public boolean equals(SaturnWebContextParameter obj) {
		if (this.key.equals(obj.getKey()) && this.scope.equals(obj.getScope())
				&& this.newKey.equals(obj.getNewKey())
				&& this.newScope.equals(obj.getNewScope())
				&& this.isDelete.equals(obj.getIsDelete())) {
			return true;
		}
		return false;
	}

	private String id = "-1";
	
	private String key = "";
	
	private String scope = "";
	
	private String newKey = "";
	
	private String newScope = "";
	
	private String isDelete = "false";
	
	
	
	public SaturnWebContextParameter(){
		
	}
	
	public SaturnWebContextParameter(SaturnWebContextParameter saturnWebContextParameter){
		this.id = saturnWebContextParameter.id;
		this.key = saturnWebContextParameter.key;
		this.scope = saturnWebContextParameter.scope;
		this.newKey = saturnWebContextParameter.newKey;
		this.newScope = saturnWebContextParameter.newScope;
		this.isDelete = saturnWebContextParameter.isDelete;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public String getNewKey() {
		return newKey;
	}

	public void setNewKey(String newKey) {
		this.newKey = newKey;
	}

	public String getNewScope() {
		return newScope;
	}

	public void setNewScope(String newScope) {
		this.newScope = newScope;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public List<?> getChild() {
		return null;
	}

	public String getName() {
		return "webContext" + getId();
	}

	public void setChild(List<?> list) {
		
	}

}
